package com.sophialex.health.record.common.dialog;

import java.util.List;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TableColumn;

import com.sophialex.health.record.common.Messages;


public class GysSelectDialog extends CommonDlg{

	public GysSelectDialog(Shell parent,List list,String filterStr) {
		super(parent);
		this.list=list;
		proStr = new String[] { "id.fbh", "fmc", "fzjc" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
		filterPro = new String[] { "id.fbh","fmc","fzjc" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
		this.filterStr=filterStr;
	}

	@Override
	protected void createColumn() {
		// TODO Auto-generated method stub
		{
			TableColumn column = new TableColumn(table, SWT.NONE);
			column.setText(Messages.GysSelectDialog_6);
			column.setWidth(70);
		}
		{
			TableColumn column = new TableColumn(table, SWT.NONE);
			column.setText(Messages.GysSelectDialog_7);
			column.setWidth(200);
		}
		{
			TableColumn column = new TableColumn(table, SWT.NONE);
			column.setText(Messages.GysSelectDialog_8);
			column.setWidth(120);
		}
		
		dbTable.setAutoResizeColumn(true);
		dbTable.setColumnProperties(proStr);
//		dbTable.exeDbTable(Tgys.class);

	}

	@Override
	protected void setShellText() {
		// TODO Auto-generated method stub
		shell.setText(Messages.GysSelectDialog_9);
	}

	@Override
	protected void setSize() {
		// TODO Auto-generated method stub
		shell.setSize(690, 500);
	}
}
